package com.zzw.design.command;

/**
 * @author zzw
 * @see
 * @since 2018/3/21
 */
public class ConcreteCommand extends Command {

    private Receiver receiver; //维持一个对请求接收者对象的引用

    @Override
    public void execute() {
        receiver.action(); //调用请求接收者的业务处理方法action()
    }
}
